#ifndef MATRIX_H
#define MATRIX_H
#include <iostream>
#include <cstring>
#include <limits>
class Matrix
{
public:
	Matrix(int m = 4, int n = 5);

	Matrix(const Matrix &m);
	~Matrix();
	Matrix &operator=(const Matrix &m);

	Matrix &operator+=(const Matrix &m);
	Matrix &operator-=(const Matrix &m);

	friend std::istream &operator>>(std::istream &in, Matrix &m);
	friend std::ostream &operator<<(std::ostream &out, const Matrix &m);

private:
	int row, col;
	int *val;
};
Matrix operator+(const Matrix &m, const Matrix &n);
Matrix operator-(const Matrix &m, const Matrix &n);

#endif